package com.base.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName: Login
 * @Description: 登陆检验接口
 * @Author: CJQ
 * @Date: 2021/2/1 10:47
 */
@Api(tags = "登陆接口")
@RestController
@RequestMapping("/login")
@Slf4j
public class LoginController {

    @ApiOperation("欢迎仪式")
    @GetMapping("/hello")
    public String hello(@RequestParam String account) {
        log.info("系统管理模块入参:"+account);
        return "WELCOME " + account;
    }

    @ApiOperation("登陆")
    @GetMapping("/index")
    public String login(@RequestParam String name, @RequestParam String password, @RequestParam String token) {
        System.out.println("开始登陆模式" + name + password + token);
        return "传入的值为：";
    }

}
